<?PHP
/**
 * LianPHP配置类库
 * 
 * @author 大春 dachun.net
 * @version 1.0
 * @copyright Copyright &copy; 2010 lian wan chun
 */

class LianConfig extends LianPhp {
	/**
	 * 加载执行设置
	 *
	 */
	public function __get($name){
		include_once(G_PATH_SYS."framework/conf/autoconfig.php");
		$this->set($config);
	}
	
	public function set($configArray){
		if(is_array($configArray) && count($configArray)>0){
			foreach($configArray as $key => $val){
				$this->add($key,$val);
			}
		}
	}

	public function add($key, $value){
		$this->{$key} = $value;
	}
}
?>